<?php /* Smarty version 2.6.19, created on 2013-02-19 12:41:54
         compiled from /home/samrathe/public_html/udeal/Interfaces/templates/admin/cms/view_add_edit_page.tpl */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('modifier', 'count', '/home/samrathe/public_html/udeal/Interfaces/templates/admin/cms/view_add_edit_page.tpl', 8, false),)), $this); ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_header1'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_header2'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_leftsidebar'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>

<div class="middel_panel">
<h1 class="type2"><?php if (0 < $this->_tpl_vars['page']->getId()): ?>Edit<?php else: ?>Add<?php endif; ?> Page</h1>
<div class="holdthisTop">
      <?php if (0 < count($this->_tpl_vars['error_messages'])): ?>
      	<div align="center" class="error" style='border:2px red;font-size:12px; '>
      	<ul>
		<?php $_from = $this->_tpl_vars['error_messages']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['error_message']):
?>
			<li style="padding:5px 5px 5px 10px;text-align:left;"><?php echo $this->_tpl_vars['error_message']; ?>
</li>
		<?php endforeach; endif; unset($_from); ?>
		</ul>
		</div>
		<div class='clr'></div>
	<?php endif; ?>
  <table width="100%"  align="center">
    <tr>
      <td>
        <form name="frmPage" method="post" action="<?php echo $this->_tpl_vars['site_path']; ?>
/admin/cms/insert_update_page" enctype="multipart/form-data" >
          <?php if (0 < $this->_tpl_vars['page']->getId()): ?>
          <input type="hidden" name="page[id]" id="page_id" value="<?php echo $this->_tpl_vars['page']->getId(); ?>
" />
          <input type="hidden" name="page[views]" id="page_views" value="<?php echo $this->_tpl_vars['page']->getViews(); ?>
" />
          <?php endif; ?>
          <table width="100%"  border="0" cellpadding="6" cellspacing="2" class="datagrid">
            <tr>
              <td width="10%" align="right" valign="top">Title:<font color="red"> *</font> </td>
              <td align="left"><input type="text" name="page[title]" id="page_title" size="80" maxlength="100" value="<?php echo $this->_tpl_vars['page']->getTitle(); ?>
" />
             </td>
            </tr>
	   		<tr>
	              <td width="12%" align="right" valign="top">Module:<font color="red"> *</font> </td>
	              <td align="left"><input type="text" name="page[module]" id="pae_module" size="80" maxlength="100" value="<?php echo $this->_tpl_vars['page']->getModule(); ?>
" />
	             </td>
            </tr>
            <tr>
              <td valign="top" align="right" >Description: </td>
              <td valign="top"><?php echo $this->_tpl_vars['fckeditor']->Create(); ?>
</td>
            </tr>
			<tr>
	              <td width="10%" align="right" valign="top">Meta title</td>
	              <td align="left">
				<input type="text" name="page[meta_title]" id="page_meta_title"  style="width:50%" value="<?php echo $this->_tpl_vars['page']->getMetaTitle(); ?>
"/></td>
	              </tr>	
			<tr>
              <td width="10%" align="right" valign="top">Meta keyword</td>
              <td align="left">
				<input type="text" name="page[meta_keywords]" id="page_meta_keywords"  style="width:50%" value="<?php echo $this->_tpl_vars['page']->getMetaKeywords(); ?>
"/></td>
             </tr>	
			<tr>
              <td width="10%" align="right" valign="top">Meta description</td>
              <td align="left">
			<textarea name="page[meta_description]" id="page_meta_description" rows="5" cols="46" ><?php echo $this->_tpl_vars['page']->getMetaDescription(); ?>
</textarea></td>
              </tr>	

            <tr>
              <td valign="top" align="right" >Status: </td>
              <td valign="top"><select name="page[status]" id="page_status">
                  <option value="1" <?php if (1 == $this->_tpl_vars['page']->getStatus()): ?> selected="selected"<?php endif; ?>>Active</option>
                  <option value="0" <?php if (0 == $this->_tpl_vars['page']->getStatus() && 0 < $this->_tpl_vars['page']->getId()): ?> selected="selected"<?php endif; ?>>Inactive</option>
                </select></td>
            </tr>
            <tr>
              <td align="right" valign="top"></td>
              <td>
					<div class="buttons">	
						<input type="submit" name="Submit" value="<?php if (0 < $this->_tpl_vars['page']->getId()): ?>Update<?php else: ?>Save<?php endif; ?>" class="button1" />
					</div>
               		<div class="buttons">
               			<input type="button" name="Cancel" value="Cancel" class="button1" onclick="javascript: history.back();" />
               		</div>
               </td>
            </tr>
          </table>
        </form></td>
    </tr>
  </table>
</div>
</div>
								<!--middel panel ends -->
                  </div>
                  <!--main content ends -->
                  <!--content ends -->
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      </div>
    </div>
    <!--Banner ends -->
  </div>
  <!--    content area ends -->
<?php $_smarty_tpl_vars = $this->_tpl_vars;
$this->_smarty_include(array('smarty_include_tpl_file' => $this->_tpl_vars['admin_footer'], 'smarty_include_vars' => array()));
$this->_tpl_vars = $_smarty_tpl_vars;
unset($_smarty_tpl_vars);
 ?>